import Vue from 'vue'
import VueRouter from 'vue-router'
//柱状图
// import SellerPage from '../views/SellerPage'
// //折线图
// import TrendPage from '../views/TrendPage'
// //地图
// import MapPage from '../views/MapPage'

// import RankPage from '../views/RankPage'

// //饼图
// import HotPage from '../views/HotPage'

// //饼图
// import StockPage from '../views/StockPage'

import ScreenPage from '../views/ScreenPage'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: 'screen'
  },
  {
    path: '/screen',
    component: ScreenPage
  },
  // {
  //   path: '/sellerpage',
  //   component: SellerPage
  // },
  // {
  //   path: '/trendpage',
  //   component: TrendPage
  // },
  // {
  //   path: '/mappage',
  //   component: MapPage
  // },
  // {
  //   path: '/rankpage',
  //   component: RankPage
  // },
  // {
  //   path: '/hotpage',
  //   component: HotPage
  // },
  // {
  //   path: '/stockpage',
  //   component: StockPage
  // }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
